<?php
function allowCors($origin="*",$credentials="true"){
    header("Access-Control-Allow-Origin: ".$origin);
    if($credentials){
        header("Access-Control-Allow-Credentials: ".$credentials);
    }
}
